package com.eastmelon.udp;

import java.net.InetAddress;

public class InetAddressDemo {
	public static void main(String[] args) throws Exception {
		InetAddress i=InetAddress.getByName("www.baidu.com");
		System.out.println(i.getHostName());
		System.out.println(i.getHostAddress());
	}
	
}
